package com.common.util.web;

import javax.servlet.http.HttpServletRequest;

public class ContextHolder {
	private static ThreadLocal<HttpServletRequest> request = new ThreadLocal<HttpServletRequest>();

	public static HttpServletRequest getRequest() {
		return (HttpServletRequest) request.get();
	}

	public static void setRequest(HttpServletRequest req) {
		request.set(req);
	}

	public static void removeRequest() {
		request.remove();
	}
}
